/**
 * BrandBigData.com Inc.
 * Copyright (c) 2016 All Rights Reserved.
 */
package com.qibao.toolkit.protocol.protocols;

import com.qibao.toolkit.protocol.facade.Request;
import com.qibao.toolkit.protocol.facade.Response;
import org.springframework.http.HttpMethod;
import org.springframework.stereotype.Component;


/**
 * @author xumin
 * @version $Id:HttpPostProtocol.java, v0.1 2017/6/21 13:25 xumin
 */
@Component
public class HttpGetProtocol extends HttpProtocol {

    public HttpGetProtocol() {
        super(HttpMethod.GET);
    }
    @Override
    protected Request preSendRequest(Request request) {
        return request;
    }

    @Override
    protected Response preReturnResponse(Response response) {
        response.setParsedContent(response.getContent());
        return response;
    }

}
